home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / cbm / 658 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: andrew.cmu.edu!wnolan+
  2. From: William Nolan <wnolan+@andrew.cmu.edu>
  3. Newsgroups: comp.sys.cbm
  4. Subject: Programming [RASTERS] question...
  5. Date: Fri, 12 Jan 1996 14:03:59 -0500
  6. Organization: Sophomore, Computer Science, Carnegie Mellon, Pittsburgh, PA
  7. Message-ID: <Ikxf2T200YUtAGNFEu@andrew.cmu.edu>
  8. NNTP-Posting-Host: po2.andrew.cmu.edu
  9.  
  10. Okay even though I don't see too many posts about this sort of stuff,
  11. I'll try anyway ... I'm sure some veteran demo coders read this stuff
  12. :).  
  13.  
  14. I'm still trying to learn demo coding stuff, and I am working on a
  15. text scroller.  A real simple one, just one line at the bottom of the
  16. screen that goes from right edge to left edge.  I'm using raster
  17. interrupts to do it, and everything *seems* okay... one one interrupt
  18. (at line 0) I reset the horiz scroll reg to 0.  Then at about line 5,
  19. I decrement the value for the horiz scroll (NOT the actual reg
  20. itself), check if it's <0, if so, reset to 7 and shift the video
  21. memory at the bottom line one character left.  Then, on line 241, I
  22. set the horiz scroll pos reg to the value calculated before.  So
  23. what's the problem, you ask?  Well ... everything works, except I am
  24. getting massive flickering every 8 scroll steps.  I'm not totally
  25. clear on how the raster works, so maybe I am coarse scrolling too
  26. soon?  Also, I set the screen to 38 column mode, but it keeps getting
  27. out of it.  But the weird thing is, every fourth or fifth time I
  28. change something and assemble it, it works beautifully.  I am using
  29. Turbo Assembler on the PC64 emulator by the way.  OH yeah I have two
  30. sprites at the bottom of the screen as well, but these shouldn't cause
  31. a problem right?  The other weird thing is if I compile the source to
  32. object code, and then load and run that from C= Basic, it scrolls, but
  33. switches between multi-color mode and hi-res mode every 2 scroll
  34. steps. Something weird is going on!!!  What am I doing wrong?
  35.  
  36.  _ _    _ _   _ _   _ _     _ _
  37. [@@@|  |@@@] [@@@] [@@@]   [@@@]
  38. [~~~|/\|~~~] [~~~] [~~~]_  [~~~]_    William Nolan -- wn22@andrew.cmu.edu
  39. [!!!!!!!!!!] [!!!] [!!!!!] [!!!!!]
  40.  \ _ /\ _ /  [_ _] [_ _ _] [_ _ _]
  41.